/**
 * @author: htqw
 * @description: check columns
 */
/**
 * @param {Function} check
 * @param {Object.<import("../table/create").typeValue,import("../table/create").typeValue>} types
 * @param {Object.<string, string>} columns 
 */
export default function checkColumns(check, types, columns) {
    for (const key in columns) {
        if (typeof key !== 'string') throw new Error('key must be string')
        check(types, columns[key])
    }
}